<?php

use common\service\StaticService;
use common\service\GlobalUrlService;
use shopend\assets\ShopAsset;

$this->title = '管理员登录';

StaticService::includeAppCssStatic(GlobalUrlService::buildShopStaticUrl('/css/public.css'),ShopAsset::class);
StaticService::includeAppJsStatic(GlobalUrlService::buildShopStaticUrl('/backend/admin/login.js'),ShopAsset::class);

?>
<form class="layui-form" id="form1">
  <div class="login_face"><img src="/img/logo.png" class="userAvatar"></div>
  <div class="layui-form-item input-item">
    <label for="userName">用户名</label>
    <input type="text" placeholder="请输入用户名" autocomplete="off" name="username" id="userName" class="layui-input" lay-verify="required">
  </div>
  <div class="layui-form-item input-item">
    <label for="password">密码</label>
    <input type="password" placeholder="请输入密码" autocomplete="off" name="pass" id="password" class="layui-input" lay-verify="required">
  </div>
  <div class="layui-form-item">
    <button class="login_btn layui-btn layui-block" lay-filter="login" lay-submit>登录</button>
  </div>
  <div class="layui-row">
    <a href="javascript:void(0);" class="layui-btn layui-btn-sm layui-col-md5 look-progress">查看入驻进度</a>
    <a href="<?= GlobalUrlService::buildShopUrl('shop/add-shop')?>" style="float: right;" class="layui-btn layui-btn-sm layui-col-md5">商家入驻</a>
  </div>
</form>